package top.infopub.model.cap;

import org.apache.commons.lang3.StringUtils;
import top.infopub.enums.cap.FinancialStyleEnum;
import top.infopub.enums.cap.FinancialTypesEnum;

/*金融机构下拉框*/
public class FinancingInstitution {

    /*金融机构id*/
    private String id;
    /*项目唯一编码*/
    private String proCode;
    /*融资机构*/
    private  String dockBank;
    /*金融机构类型*/
    private String capType;
    /*融资类型*/
    private String financingType;
    /*融资主体*/
    private String coopName;
    /*融资负责人*/
    private String leader;

    /*融资方案简述*/
    private String financingPlanDesc;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDockBank() {
        return dockBank;
    }

    public void setDockBank(String dockBank) {
        this.dockBank = dockBank;
    }

    public String getCoopName() {
        return coopName;
    }

    public void setCoopName(String coopName) {
        this.coopName = coopName;
    }

    public String getCapType() {
        return capType;
    }

    public void setCapType(String capType) {
        this.capType = capType;
        if (StringUtils.isNotBlank(capType)) {
            FinancialTypesEnum pidte = FinancialTypesEnum.getByCode(capType);
            if (pidte != null) {
                setCapType(pidte.getName());
            }
        }
    }

    public String getFinancingType() {
        return financingType;

    }

    public void setFinancingType(String financingType) {
        this.financingType = financingType;
        if (StringUtils.isNotBlank(financingType)) {
            FinancialStyleEnum pidte = FinancialStyleEnum.getByCode(financingType);
            if (pidte != null) {
                setFinancingType(pidte.getName());
            }
        }
    }

    public String getProCode() {
        return proCode;
    }

    public void setProCode(String proCode) {
        this.proCode = proCode;
    }

    public String getLeader() {
        return leader;
    }

    public void setLeader(String leader) {
        this.leader = leader;
    }

    public String getFinancingPlanDesc() {
        return financingPlanDesc;
    }

    public void setFinancingPlanDesc(String financingPlanDesc) {
        this.financingPlanDesc = financingPlanDesc;
    }
}
